package com.dongdongshop.mapper;

import com.dongdongshop.seller.pojo.TbGoods;
import com.dongdongshop.seller.pojo.TbGoodsExample;
import com.dongdongshop.seller.vo.GoodsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbGoodsMapper {
    int countByExample(TbGoodsExample example);

    int deleteByExample(TbGoodsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbGoods record);

    int insertSelective(TbGoods record);

    List<TbGoods> selectByExample(TbGoodsExample example);

    TbGoods selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbGoods record, @Param("example") TbGoodsExample example);

    int updateByExample(@Param("record") TbGoods record, @Param("example") TbGoodsExample example);

    int updateByPrimaryKeySelective(TbGoods record);

    int updateByPrimaryKey(TbGoods record);

    void insertGoods(TbGoods goods);

    void deleteGoods(@Param("ids") Long[] ids);

    List<TbGoods> getGoodsByName(@Param("goodsName")String goodsName);

    List<TbGoods> getGoodsBySellerId(@Param("sellerId")String sellerId,@Param("state")Integer state,@Param("name")String name);

    GoodsVO selectById(@Param("id") Long id);

    void updateStatus(@Param("obj")Integer obj, @Param("ids")Long[] ids);
}